package com.carworld.controller;

import com.carworld.config.BaseController;
import com.carworld.model.Card;
import com.carworld.model.SysUser;

public class MobileInfoController extends BaseController {

	/*
	 * 个人中心获取用户信息
	 */
	public void user() {
		String userId = getUserCookie();
		SysUser user = SysUser.dao.findByIdInCache(userId);
		Card card = Card.dao.findCardByIdInCache(userId);
		setAttr("user", user);
		setAttr("card", card);
		render("/index/user.html");
	}

}
